<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!-- Liste mit den offenen Genehmigungen -->

<form action="permite.htm" method="post">

	<table>
		<tr>
			<td>Userkennung</td>
			<td>Modelname</td>
		</tr>
		<c:forEach items="${permissions}" var="permission">
			<tr>
				<td><c:out value="${permission.workingEnvironment.employee}"></c:out></td>
				<td><c:out value="${permission.workingEnvironment.model.name}"></c:out></td>
				<td>
				<c:if test="${permission.permitted == 1}">
					<a href="permite.htm?id=<c:out value="${permission.id}"></c:out>">genehmigen</a>
				</c:if>
				</td>
			</tr>
		</c:forEach>
	</table>
	
</form>